package cn.fintecher.pangolin.entity.elastic;

import cn.fintecher.pangolin.common.enums.TaskBoxStatus;
import cn.fintecher.pangolin.common.enums.TaskBoxType;
import cn.fintecher.pangolin.common.utils.Constants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;

/**
 * @Auther: xiaqun
 * @Description: 任务盒子实体
 * @Date: 10:01 2019/8/30
 */

@Data
@Document(indexName = Constants.TASK_BOX, type = Constants.TASK_BOX, shards = 1, replicas = 0)
@Api(value = "任务盒子实体",description = "任务盒子实体")
public class TaskBox {
    @Id
    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "类型")
    private TaskBoxType taskBoxType;

    @ApiModelProperty(value = "任务状态")
    private TaskBoxStatus taskBoxStatus;

    @ApiModelProperty(value = "开始时间")
    private Date beginDate;

    @ApiModelProperty(value = "结束时间")
    private Date endDate;

    @ApiModelProperty(value = "任务描述")
    private String taskDescribe;

    @ApiModelProperty(value = "导出文件URL地址")
    private String fileId;

    @ApiModelProperty(value = "导出文件名称")
    private String fileName;

    @ApiModelProperty(value = "操作人")
    private String operator;

    @ApiModelProperty(value = "操作时间")
    private Date operatorTime;
}
